<%= form_for(@motherboard) do |f| %>
  <% if @motherboard.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@motherboard.errors.count, "error") %> impidieron almacenar esta placa base:</h2>

      <ul>
      <% @motherboard.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label 'Título' %><br />
    <%= f.text_field :title %>
  </div>
  <div class="field">
    <%= f.label 'Descripción' %><br />
    <%= f.text_area :description %>
  </div>
  <div class="field">
    <%= f.label 'Socket' %><br />
    <%= f.text_field :socket %>
  </div>
  <div class="field">
    <%= f.label 'Velocidad del procesador (MHz)' %><br />
    <%= f.number_field :procspeed %>
  </div>
  <div class="field">
    <%= f.label 'Tipo de memoria' %><br />
    <%= f.text_field :memtype %>
  </div>
  <div class="field">
    <%= f.label 'Ranuras de memoria' %><br />
    <%= f.number_field :memslots %>
  </div>
  <div class="field">
    <%= f.label 'Dimensiones' %><br />
    <%= f.text_field :dimensions %>
  </div>
  <div class="field">
    <%= f.label 'Factor de forma'%><br />
    <%= f.text_field :factor %>
  </div>
  <div class="field">
    <%= f.label 'Ranuras PCI' %><br />
    <%= f.number_field :pcislots %>
  </div>
  <div class="field">
    <%= f.label 'Ranuras PCI Express' %><br />
    <%= f.number_field :pcie %>
  </div>
  <div class="field">
    <%= f.label 'Ranuras PCI16' %><br />
    <%= f.number_field :pci16 %>
  </div>
  <div class="field">
    <%= f.label 'Ranuras AGP' %><br />
    <%= f.number_field :agp %>
  </div>
  <div class="field">
    <%= f.label 'URL' %><br />
    <%= f.text_field :product_url %>
  </div>
  <div class="field">
    <%= f.label 'Precio' %><br />
    <%= f.text_field :price %>
  </div>
  <div class="actions">
    <%= f.submit 'Crear/Actualizar'%>
  </div>
<% end %>
